home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16579 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: solon.com!not-for-mail
  2. From: Kengo Hashimoto <nexx@mittens.stu.rpi.edu>
  3. Newsgroups: comp.lang.c,comp.lang.c.moderated,comp.lang.c++
  4. Subject: Re: Is C/C++ convertor available ???
  5. Date: 11 Apr 1996 06:37:30 -0500
  6. Organization: Rensselaer Polytechnic Institute, Troy NY, USA
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4kiqtq$65d@solutions.solon.com>
  10. References: <4k5vt7$a3c@solutions.solon.com> <4kcmib$ova@solutions.solon.com> <4kg88m$ig8@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13. On 10 Apr 1996, William O'Hara wrote:
  14.  
  15. > >You heard wrong. g++ is a C++ compiler, not a C++ to C 
  16. > translator, and it has
  17. > >no such option.
  18. >     I DO NOT use gcc. 
  19.  
  20. Then please do not say things that you know naught the answers to =]
  21.  
  22. > Yet I wouldn't doubt that 
  23. > there was a feature..
  24.  
  25. G++ is, as the other person has stated, a C++ compiler, and NOT a C++ to 
  26. C translator. If you want/need C++ to C translating, find something 
  27. called CFront. It would be pricey, though.
  28.  
  29. > After all C++ is an extension to
  30. > C which is theortically an extension to itself. :)
  31.  
  32. No, C++ is a superset of C. What you're saying implies that C is also a 
  33. superset of C++, which is not true.
  34.  
  35. > Classes and such all boil down to structures..
  36.  
  37. though this is correct in the most basic of levels, C-style structures do 
  38. not provide a way for binding functions and data into one data object, 
  39. while C++ allows you to do so. 
  40.  
  41. > Don't
  42. > ever get the idea that C++ is its own language. It goes
  43. > through a tier of translation before compilation. 
  44.  
  45. The current versions of FSF's G++ and other C++ compilers *are* C++ 
  46. compilers. Other C++ compilers, however, are simply filters, including 
  47. the older versions of G++. Perhaps that's where you have gotten your 
  48. confusion from. C++ *is* its own language, despite the fact that it is an 
  49. extention to C, such OO extentions as virtual functions, templates, and 
  50. class inheritances, among others, do qualify it as a new language, IMHO. 
  51. If you contend that the syntax of C is too much like C++ for C++ to be a 
  52. new language, then you could also argue that csh(1) shell programming is 
  53. also programming in C, simply because csh(1) was designed to make life 
  54. simple for the C programmer.
  55.  
  56. Nexx
  57.  
  58. Each day of a person's life is a battle;
  59. The entire life being the war.
  60. A war, not against anybody else;
  61. But one fought against oneself.
  62. One need never to fight alone;
  63. One shalt always have companions of the heart.
  64.